package org.dreamwork.seagragon;

import javax.servlet.ServletOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * Created by IntelliJ IDEA.
 * User: seth
 * Date: 2010-4-24
 * Time: 18:39:49
 */
class ImitationServletOutputStream extends ServletOutputStream {
    private OutputStream out;

    public ImitationServletOutputStream (OutputStream out) {
        this.out = out;
    }

    @Override
    public void write (int b) throws IOException {
        out.write (b);
    }

    @Override
    public void flush () throws IOException {
        out.flush ();
    }
}